﻿<%@ Page Title="" Language="C#" MasterPageFile="~/NotAuth.Master" AutoEventWireup="true" CodeBehind="NotAuth.aspx.cs" Inherits="RedeSocial.Web.NotAuth" %>

<%@ Register Assembly="RedeSocial.Web" Namespace="RedeSocial.Web.Controls" TagPrefix="cc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
	<table style="width:100%;">
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblName" runat="server" CssClass="Label" Text="Nome : "></asp:Label>
			</td>
			<td style="width: 328px">
				<telerik:RadTextBox ID="txtName" Runat="server" CssClass="TextBox" 
					Width="200px">
				</telerik:RadTextBox>
				<asp:CustomValidator ID="ValidatorName" runat="server" 
					ModelProperty="Name" 
					ControlToValidate="txtName"
					ValidateEmptyText="True"
					OnServerValidate="CustomValidation"
					CssClass="lblError" ValidationGroup="CreateUser" ErrorMessage="Invalid Name">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblEMail" runat="server" CssClass="Label" Text="E-mail : "></asp:Label>
			</td>
			<td style="width: 328px">
				<telerik:RadTextBox ID="txtEMail" Runat="server" CssClass="TextBox" 
					Width="200px">
				</telerik:RadTextBox>
				<asp:CustomValidator ID="ValidatorEmail" runat="server" 
					ModelProperty="Email" 
					ControlToValidate="txtEMail"
					ValidateEmptyText="True"
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblGender" runat="server" CssClass="Label" Text="Sexo : "></asp:Label>
			</td>
			<td>
				<telerik:RadComboBox ID="cboGender" Runat="server">
					<Items>
						<telerik:RadComboBoxItem runat="server" 
							ImageUrl="~/Pics/Men.png" Value="1" ID="cboItemMen" Text="Male"/>
						<telerik:RadComboBoxItem runat="server"
							ImageUrl="~/Pics/Woman.png" Value="2" ID="cboItemWoman" Text="Female" />
					</Items>
				</telerik:RadComboBox>
				<asp:CustomValidator ID="ValidatorGender" runat="server" 
					ModelProperty="Gender" 
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblbBirthday" runat="server" CssClass="Label" 
					Text="Data de Nascimento : "></asp:Label>
			</td>
			<td style="width: 328px">
				<telerik:RadDatePicker ID="rdpBirthday" Runat="server" CssClass="TextBox" 
					ShowPopupOnFocus="True" Width="200px" Culture="(Default)" 
					MinDate="1900-01-01">
<Calendar UseRowHeadersAsSelectors="False" UseColumnHeadersAsSelectors="False" ViewSelectorText="x"/>

<DatePopupButton ImageUrl="" HoverImageUrl=""></DatePopupButton>
				</telerik:RadDatePicker>
				<asp:CustomValidator ID="ValidatorBirthday" runat="server" 
					ModelProperty="Birthday" 
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblPass" runat="server" CssClass="Label" Text="Password :"></asp:Label>
			</td>
			<td>
				<telerik:RadTextBox ID="txtPass" Runat="server" TextMode="Password" Width="200px"/>
				<asp:CustomValidator ID="ValidatorPassword" runat="server" 
					ModelProperty="Password" 
					ControlToValidate="txtPass"
					ValidateEmptyText="True"
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
			</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblConfPass" runat="server" CssClass="Label" 
					Text="Confirme Password :"></asp:Label>
			</td>
			<td style="width: 328px">
				<telerik:RadTextBox ID="txtConfPass" Runat="server" TextMode="Password" Width="200px"/>
				<asp:CustomValidator ID="ValidatorConfirmPassword" runat="server" 
					ModelProperty="ConfirmPassword" 
					ControlToValidate="txtConfPass"
					ValidateEmptyText="True"
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				<asp:Label ID="lblCountries" runat="server" CssClass="Label" 
					Text="Country:"></asp:Label>
			</td>
			<td style="width: 328px">
				<telerik:RadComboBox ID="cboCountries" Runat="server" DataTextField="Name" 
					DataValueField="Country.Id" Culture="(Default)" 
					SortCaseSensitive="False" MarkFirstMatch="True"  CausesValidation="False"  Filter="StartsWith" />
				<asp:CustomValidator ID="ValidatorCountry" runat="server" 
					ModelProperty="Country" 
					OnServerValidate="CustomValidation"
					CssClass="lblError" 
					ValidationGroup="CreateUser">*</asp:CustomValidator>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				&nbsp;</td>
			<td colspan="2">
				<telerik:RadCaptcha ID="RadCaptcha" Runat="server" 
					CaptchaTextBoxLabel="" CssClass="TextBox" 
					Width="400px" EnableRefreshImage="True" 
					CaptchaImage-EnableCaptchaAudio=true EnableTheming="True" 
					ErrorMessage="Codigo Errado." ForeColor="Red" ValidationGroup="CreateUser">
				</telerik:RadCaptcha>
			</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				&nbsp;</td>
			<td colspan="2">
				<table border="0" cellpadding="0" cellspacing="2">
					<tr>
						<td>
							<asp:CheckBox ID="chkAgreeWithTOS" runat="server" Text="Concordo com os termos de servico" />
						</td>
						<td>
							<asp:CustomValidator ID="ValidatorAgreeWithTOS" runat="server" 
								ModelProperty="AgreeWithTOS" 
								OnServerValidate="CustomValidation"
								CssClass="lblError" 
								ValidationGroup="CreateUser">*</asp:CustomValidator>
						</td>
						<td>
							<asp:HyperLink ID="lnkReadTOS" runat="server" Target="_blank" NavigateUrl="<%$ Code: TOSUrl%>" 
								Text="(Ler)"/>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				&nbsp;</td>
			<td>
				<telerik:RadButton 
					ID="btnSend" 
					runat="server" 
					CssClass="Buttons" 
					Text="Enviar" 
					ValidationGroup="CreateUser" Width="100px" onclick="btnSend_Click"/>
			</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td style="width: 19px">
				&nbsp;</td>
			<td style="width: 132px" align="right">
				&nbsp;</td>
			<td colspan="2">
				<asp:Label ID="lblError" runat="server" Text="Error!!!" CssClass="lblError" 
					Visible="False"/>
				<asp:ValidationSummary ID="ValidationSummary" runat="server" 
					ValidationGroup="CreateUser" ForeColor="Red" />
			</td>
		</tr>
	</table>
</asp:Content>
